<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>
<%@ taglib prefix="s" uri="/struts-tags"%>

<%
	String path = request.getContextPath();
	String basePath = request.getScheme() + "://"
			+ request.getServerName() + ":" + request.getServerPort()
			+ path;
	
%>

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<title>统计分析主页</title>
	<base href="<%=basePath%>/" />
	
	<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0" />
  	<meta http-equiv="X-UA-Compatible" content="IE=Edge,chrome=1" /><!-- IE的渲染模式 -->
  	<meta name="renderer" content="webkit" /><!-- 浏览器高速模式 -->
  	<meta name="viewport" content="initial-scale=1.0, user-scalable=no" />
  	
	<meta name="keywords" content="信帧,teleframe,iparking,I停车,爱停车,blackshadowwalker" />
	<meta name="description" content="信帧,teleframe,iparking,I停车,爱停车,blackshadowwalker" />
	<meta name="author" content="blackshadowwalker" />
	
	<link href="css/common.css" rel="stylesheet" />
    <link href="bootstrap/3.2/css/bootstrap.min.css" rel="stylesheet" />
	
	<script type="text/javascript" src="scripts/jquery/jquery-1.7.min.js" ></script>	
	<script src="bootstrap/3.2/js/bootstrap.min.js"></script>
	
	<script src="index/js/index.js" type="text/javascript"></script>
	<link href="modules/park/stat/css/style.css" rel="stylesheet" type="text/css" />
	
	<style>
		.btn-green{
			background-color: #33CC00;
			color: #ffffff;
		}
	</style>

</head>
<body>
	
	<div  class="header">
		<div class="h5-header"  >
			<a href="javascript:void(0);" onclick="goback();" class="head-backer" ></a>
			<span style="display:inline-block;margin-top:10px;width:80%;" > 统计分析</span> 
			<span style="display:inline-block;float:right;margin-top:-20px;margin-right:10px;text-align:right; width:20%;">&nbsp;</span>
		</div>
		
		<div class="h5-color-line">
			<span class="c1" ></span>
			<span class="c2" ></span>
			<span class="c3" ></span>
			<span class="c4" ></span>
			<span class="c5" ></span>
		</div>
	</div>
	
	<div id="menulist" style="padding-top:5px;">
		<a class="btn btn-lg btn-block btn-success" target="mainframe" href="HotAreaAction" >热点地区分析</a>
		<a class="btn btn-lg btn-block btn-primary" target="mainframe" href="OrderStatisticsAction" >订单统计</a>
		<a class="btn btn-lg btn-block btn-info" 	target="mainframe" href="ParkStatAction" >停车场统计</a>
		<a class="btn btn-lg btn-block btn-green" target="mainframe" href="PayStatisticsAction" >收支统计</a>
		<a class="btn btn-lg btn-block btn-warning" target="mainframe" href="StatActiveUserAction" >活跃用户统计</a>
		<a class="btn btn-lg btn-block btn-danger" 	target="mainframe" href="StatCumulativeUserAction" >用户量统计</a>
	</div>

	<div id="content" style="display:none;">
		<iframe id="mainframe" name="mainframe" style="width:98%;height:100%;border:0px;"></iframe>
	</div>	
	
	<script>
		function goback(){
			window.top.mainframe.history.back();
		}
		
		$("#mainframe").load(function(){
			if(window.console){
				console.log("mainframe load");
			}
			var html = $(document.getElementById('mainframe').contentWindow.document.body).html(); //$("#mainframe").html();
			if(window.console){
				console.log(html);
			}
			if($.trim(html)==""){
				$("#menulist").show();
				$("#content").hide();
			}
		});
	
		$(document).ready(function(){
			var height = $(window).height();
			$("#mainframe").height(height - 50);
			if(window.console){
				console.log("mainframe.height="+height);
			}
			
			$("#menulist a").click(function (event){
// 			    event.preventDefault();
// 				var url = $(this).attr("href");
				$("#menulist").hide();
				$("#content").show();
			});
		});
		
	</script>
	
	
</body>
</html>
